import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/Index.vue'
import Login from '../views/Login.vue'

Vue.use(VueRouter)

const routes = [{
    path: "/",
    name: Login,
    component: Login

  },
  {
    path: "/login",
    name: Login,
    component: Login

  },
  {
    path: "/index",
    name: Index,
    component: Index

  }
]

const router = new VueRouter({
  routes
})

export default router